package com.ruoyi.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言对象 message
 * 
 * @author Admin
 * @date 2025-09-06
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留言编号 */
    @Excel(name = "留言编号")
    private Long id;

    /** 留言儿童编号 */
    @Excel(name = "留言儿童编号")
    private Long sendId;

    /** 接受留言社工编号 */
    @Excel(name = "接受留言社工编号")
    private Long receiverId;

    /** 信息内容 */
    @Excel(name = "信息内容")
    private String content;

    /** 留言时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留言时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 留言状态，0-正常，1-删除 */
    @Excel(name = "留言状态，0-正常，1-删除")
    private Long status;

    /** 父留言编号 */
    @Excel(name = "父留言编号")
    private Long parentId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSendId(Long sendId) 
    {
        this.sendId = sendId;
    }

    public Long getSendId() 
    {
        return sendId;
    }

    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sendId", getSendId())
            .append("receiverId", getReceiverId())
            .append("content", getContent())
            .append("sendTime", getSendTime())
            .append("status", getStatus())
            .append("parentId", getParentId())
            .toString();
    }
}
